package com.example.conf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 满减优惠表
 * </p>
 *
 * @author wpdcn
 * @since 2020-04-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shop_full_reduction_campaign_discount")
@ApiModel(value="ShopFullReductionCampaignDiscountEntity对象", description="满减优惠表")
public class ShopFullReductionCampaignDiscountEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column(comment = "主键id")
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Column(comment = "活动id")
    @ApiModelProperty(value = "活动id")
    private Long campaignId;

    @Column(comment = "优惠等级：1、2、3、4、5")
    @ApiModelProperty(value = "优惠等级：1、2、3、4、5")
    private Integer level;

    @Column(comment = "优惠门槛：满XX元")
    @ApiModelProperty(value = "优惠门槛：满XX元")
    private Double maxLimit;

    @Column(comment = "满足优惠门槛后减免金额")
    @ApiModelProperty(value = "满足优惠门槛后减免金额")
    private Double discount;


}
